package com.tianyu.jty.wechat.servlet;

import com.tianyu.jty.wechat.msg.BaseMsg;
import com.tianyu.jty.wechat.msg.TextMsg;
import com.tianyu.jty.wechat.msg.req.TextReqMsg;

import javax.servlet.annotation.WebServlet;

/**
 * Created by xtao on 2015/11/24.
 */
@WebServlet("/wechat")
public class PriceLessWeixin extends WeixinServletSupport {

    private static final String TOKEN = "";

    @Override
    protected String getToken() {
        return TOKEN;
    }

    @Override
    protected BaseMsg handleTextMsg(TextReqMsg msg) {
        return new TextMsg("你说了：" + msg.getContent());
    }
}
